Skip to content

chore(aci): add alert creation + success analytics#104403

Merged
ameliahsu merged 3 commits intomasterfrom
mia/aci/analytics
Dec 5, 2025
Merged

chore(aci): add alert creation + success analytics#104403
ameliahsu merged 3 commits intomasterfrom
mia/aci/analytics

Conversation

@ameliahsu
Copy link
Copy Markdown
Contributor

Adding analytics for creating old alert rules, cron monitors, and uptime monitors in the old UI so that we can compare these numbers to the new UI. Also added a success: boolean field to the monitor/automation creation analytics so we can see if the new UI is intuitive or if users are running into lots of errors.

@ameliahsu ameliahsu requested review from a team as code owners December 4, 2025 18:45
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 4, 2025
'cron_monitor.created': {
cron_schedule_type: MonitorConfig['schedule_type'];
};
'issue_alert_rule.created': Record<string, unknown>;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't figure out another typing solution for issue_alert_rule.created where there aren't additional parameters

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think this should be the correct way

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #104403   +/-   ##
========================================
  Coverage   80.59%    80.59%           
========================================
  Files        9343      9343           
  Lines      399417    399412    -5     
  Branches    25589     25589           
========================================
- Hits       321896    321892    -4     
+ Misses      77061     77060    -1     
  Partials      460       460           

return;
}

const payload = formDataToEndpointPayload(data as TFormData);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Payload creation moved outside try-catch loses error handling

The formDataToEndpointPayload call was moved from inside the try-catch block to outside it. Previously, if this function threw an exception, it would be caught and the error handling code would run (addErrorMessage, onError callback, onSubmitError). Now if it throws, the exception propagates uncaught, bypassing all error handling and potentially crashing the UI without user feedback.

Fix in Cursor Fix in Web

@ameliahsu ameliahsu merged commit 8f21261 into master Dec 5, 2025
49 checks passed
@ameliahsu ameliahsu deleted the mia/aci/analytics branch December 5, 2025 23:07
ryan953 pushed a commit that referenced this pull request Dec 9, 2025
Adding analytics for creating old alert rules, cron monitors, and uptime
monitors in the old UI so that we can compare these numbers to the new
UI. Also added a `success: boolean` field to the monitor/automation
creation analytics so we can see if the new UI is intuitive or if users
are running into lots of errors.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants